package com.success.application.shop;

import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.view.View;

import com.success.application.base.BaseDetailViewPagerFragment;
import com.success.application.base.BaseViewPagerFragment;
import com.success.application.myapplication.R;
import com.success.application.shop.bean.HuoDong;
import com.success.application.user.bean.User;

import butterknife.Bind;

/**
 * Created by WYN on 2017/3/21.
 */

public class ActivityListFragmentViewPager extends BaseDetailViewPagerFragment {
    //积分详情实体类
    private User mUser;
    private HuoDong mHuodong;
    @Bind(R.id.tab_nav)
    TabLayout mTabNav;

    @Override
    protected int getContentLayoutId() {
        return R.layout.shop_activity_fragment_view_pager;
    }
    @Override
    protected BaseViewPagerFragment.PagerInfo[] getPagers() {
        BaseViewPagerFragment.PagerInfo[] infoList = new PagerInfo[1];
        infoList[0] = new PagerInfo("报名人数"+mHuodong.getHdzx_bmrs()+"人", ActivityListFragment.class,
                getBundle(1));
        return infoList;
    }

    @Override
    protected void initBundle(Bundle bundle) {
        super.initBundle(bundle);
        mHuodong = (HuoDong) bundle.getSerializable("HUODONG");
    }

    @Override
    protected void initWidget(View root) {
        super.initWidget(root);
    }

    @Override
    protected void initData() {
        super.initData();
    }
    private Bundle getBundle(int category) {
        Bundle bundle = new Bundle();
        bundle.putSerializable(ActivityListFragment.POINT_DETAILS_ID, mHuodong);
        return bundle;
    }
}
